#include <Ice/Application.h>
#include <SSLPermissionsVerifier.h>

class PermissionsVerifierServer : public Ice::Application
{
public:
  virtual int run(int, char*[])
  {
    Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("PermissionsVerifier");
    adapter->add(new SSLPermissionsVerifier, communicator()->stringToIdentity("SSLPermissionsVerifier"));
    adapter->activate();
    communicator()->waitForShutdown();
    return EXIT_SUCCESS;
  }
};

int main(int argc, char* argv[])
{
  PermissionsVerifierServer app;
  return app.main(argc, argv);
}
